					<div class="menu_top">
						<ul>
                        	<?
								$sanpham_root = $t->get_by_thutu("sanpham_root",-1,1," AND top=1");
								$flag=0;
								while($row_root=mysql_fetch_assoc($sanpham_root)){
									$idmenu=$row_root['idmenu'];
									$menu=$t->get_by_thutu("sanpham_menu",$idmenu);
									$row_menu=mysql_fetch_assoc($menu);
									if($row_menu['ten_'.$lang]=='') $row_menu['ten_'.$lang]='-';
							?>
							<li <? if ($flag==0) { echo "class='none'"; $flag=1; } ?>>
								<a href="<?=$rooturl?><?=$list['13']['alias'];?>/<?=convert($row_menu['ten_'.$lang])?>/<?=convert($row_root['ten_'.$lang])?>-<?=$row_root['id']?>.html"><?php echo $row_root['ten_'.$lang]; ?></a>
								<?php 
								$sanpham_chungloai = $t->get_by_thutu("sanpham_chungloai",-1,1," AND idroot=".$row_root['id']);
								if (mysql_num_rows($sanpham_chungloai) != 0): ?>
								<div>
									<ul>
                                    	<?
											while($row_cl=mysql_fetch_assoc($sanpham_chungloai)){
										?>
										<li>
											<a href="<?=$rooturl?><?=$list['12']['alias'];?>/<?=convert($row_menu['ten_'.$lang])?>/<?=convert($row_root['ten_'.$lang])?>/<?=convert($row_cl['ten_'.$lang])?>-<?=$row_cl['id']?>.html"><?=$row_cl['ten_'.$lang]; ?></a>
										</li>
                                        <?
											}
										?>
									</ul>
								</div>
								<?php endif ?>
							</li>
                            <?
								}
							?>
						</ul>
					</div>